package com.stgy.lease.web.admin.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.stgy.lease.model.domain.ApartmentInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.stgy.lease.web.admin.dto.ApartmentInfoSaveDto;
import com.stgy.lease.web.admin.dto.ApartmentInfoSearchDto;
import com.stgy.lease.web.admin.vo.ApartmentDetailVo;
import com.stgy.lease.web.admin.vo.ApartmentInfoVo;

import java.util.List;

/**
* @author lingx
* @description 针对表【apartment_info(公寓信息表)】的数据库操作Service
* @createDate 2024-08-28 11:00:28
*/
public interface ApartmentInfoService extends IService<ApartmentInfo> {

    //新增或更新公寓信息
    boolean saveOrUpdateApartmentInfoSaveDto(ApartmentInfoSaveDto apartmentInfoSaveDto);

    //条件分页查询公寓列表
    Page<ApartmentInfoVo> pageItem(ApartmentInfoSearchDto searchDto);

    //根据id删除公寓信息
    boolean removeApartmentInfoById(Long id);

    //根据ID获取公寓详细信息
    ApartmentDetailVo getDetailById(Long id);

    //根据id获取该地区的公寓列表
    List<ApartmentInfo> getByDistrictId(Long districtId);

    //根据id更新公寓的发布状态
    boolean updateReleaseStatusById(Long id,Integer status);
}
